package ebj.common.enumeration.reflection;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;

import ebj.common.enumeration.inmobi.PropertyID;

public class ReflectionTest {
	static String className = PropertyID.class.getName();
	public static void main(String[] args) {
		Class<?> clazz = null;
		try {
			clazz = Class.forName(className);
			Method[] methods = clazz.getDeclaredMethods();
			for (Method method : methods) {
				System.out.println("method:" + method.getName());
			}
			Constructor<?>[] constructors2 = clazz.getDeclaredConstructors();
			for (Constructor<?> constructor : constructors2) {
				System.out.println("DeclaredConstructor:" + constructor.getName());
			}
			Field[] fields = clazz.getDeclaredFields();
			for (Field field : fields) {
				System.out.println("field:" + field.getName());
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}
}
